import java.io.*;

public class LogReader {

    /**
     * @param fileName the file path and name
     * @return  a BufferedReader for reading the file
     */
    public static BufferedReader readFile(String fileName) throws IOException {

        FileInputStream fstream = new FileInputStream(fileName); //obtains bytes from a file
        DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in)); //now we can work with char data instead of raw bytes
        //in.close();
        return br;

    }
}
